package com.foo.example.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 我的业绩
 * @author Administrator
 *
 */
@Entity
@Table(name = "cq_bu_performance")
public class Performance {
		
		@Id
		@Column(name = "id",length = 32)
		@javax.persistence.GeneratedValue(generator = "system-uuid")
		@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
		private String id;
		
		@Column(nullable = false)
		private Long userNo;     //会员编号

		private Date dealDate;  //结算日期

		@Column(nullable = false)
		private Double referralBonus;     //招商奖金(直接推荐奖金)
		
		@Column(nullable = false)
		private Double performanceBonus;//管理奖金(业绩奖金)
		
		@Column(nullable = false)
		private Double repeatSupplyBonus;//重复供货奖金(非首次充值的奖金)		
		
		@Column(nullable = false)
		private Double directorDividend;//董事分红
		
		@Column(length = 100,nullable = true)
		private String welfare;//福利奖项
		
		@Column(nullable = false)
		private Double myPerformanceAmount;//我的总业绩		

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public Long getUserNo() {
			return userNo;
		}

		public void setUserNo(Long userNo) {
			this.userNo = userNo;
		}

		public Date getDealDate() {
			return dealDate;
		}

		public void setDealDate(Date dealDate) {
			this.dealDate = dealDate;
		}

		public Double getReferralBonus() {
			return referralBonus;
		}

		public void setReferralBonus(Double referralBonus) {
			this.referralBonus = referralBonus;
		}

		public Double getPerformanceBonus() {
			return performanceBonus;
		}

		public void setPerformanceBonus(Double performanceBonus) {
			this.performanceBonus = performanceBonus;
		}

		public Double getRepeatSupplyBonus() {
			return repeatSupplyBonus;
		}

		public void setRepeatSupplyBonus(Double repeatSupplyBonus) {
			this.repeatSupplyBonus = repeatSupplyBonus;
		}

		public Double getDirectorDividend() {
			return directorDividend;
		}

		public void setDirectorDividend(Double directorDividend) {
			this.directorDividend = directorDividend;
		}

		public String getWelfare() {
			return welfare;
		}

		public void setWelfare(String welfare) {
			this.welfare = welfare;
		}

		public Double getMyPerformanceAmount() {
			return myPerformanceAmount;
		}

		public void setMyPerformanceAmount(Double myPerformanceAmount) {
			this.myPerformanceAmount = myPerformanceAmount;
		}
		
}
